package com.wheesper.www.WheesperServer.Services;

import com.wheesper.www.WheesperServer.Net.Session.IOSession;

import ProtocolBuffer.ProtoMessageOuterClass.*;

public class LogServices {
	public static void handle(IOSession session,SigninRequest request) {
		String email = request.getMailAddress();
		String password = request.getPassword();
		System.out.println("User Email:" + email);
		System.out.println("User Password:" + password);
		LogController.Instance().logon(session, email, password);
	}
	public static void handle(IOSession session,SignoutRequest request) {
		LogController.Instance().logout(session);
	}
}
